package com.heima.wemedia.controller.v1;

import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.NewsAuthDto;
import com.heima.wemedia.service.WmNewsArtificialService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1/news")
@RequiredArgsConstructor
@Slf4j
public class WmNewsArtificialController {

    private final WmNewsArtificialService wmNewsArtificialService;

    /** 进行人工审核文章列表查询 */
    @PostMapping("/list_vo")
    public PageResponseResult listVo(@RequestBody NewsAuthDto dto){
        log.info("进行人工审核列表查询：{}",dto);
        return wmNewsArtificialService.list(dto);
    }
}
